var valuearea="slider-value",
    textfield="slider-converted-value",
    i=0,
    slider = new Array(), 
    thumb=new Array();
    
 
function sliderInit() {
	var topConstraint = 0;
    var bottomConstraint = 200;
    var scaleFactor = 0.1;
    for(i = 0; i < 5; i++ ){
    	var bg = 'slider' + i;
    	thumb[i] = 'slider-thumb' + i;
    	
    	slider[i] = YAHOO.widget.Slider.getHorizSlider(bg, thumb[i], topConstraint, bottomConstraint);
    	
    	slider[i].subscribe("change", function(offsetFromStart){
			var actualValue = Math.round(this.getValue() * scaleFactor);
			var id = this.getEl().id + '-converted-value';
			document.getElementById(id).value = actualValue;
	        document.getElementById(bg).title = "Slider value = " + actualValue;
	    });
    }
}